home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / MacTools / C++ / card_12008_render.png < prev    next >
Portable Network Graphic  |  1991-11-29  |  3.9 KB  |  512x342  |  4-bit (3 colors)
   ocr: As you can see in the previous card, we could have turther SUD-divided the class ship into more and more specitic memberstor types of ships). Classes We have aiready been discussing classes sO far. Classes, are abstract data types. In the previous eHample we reterred to the class "ship". In C++, a class can be detined with the keywords struct, union or class. In creating a new class, you can combine runctions of that class, that are called member runctions and also have data, that are called data members. When you give a name to a class, as in our last eHample of ship, that name now becomes th ...